﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProjectCore.Domain.Model.Entity
{
    public class Roles
    {
        [Key]
        public int RoleID { get; set; }//主键ID

        [StringLength(50)]
        public string RoleName { get; set; }//角色名称

        public int Sort { get; set; }//排序

        public DateTime CreateDate { get; set; }//创建时间

        public int ParentID { get; set; }//父级ID

        [StringLength(200)]
        public string Spare { get; set; }//备用字段
        [NotMapped]
        public bool IsDeleted { get; set; }
    }
}
